﻿@using X.PagedList;
@using X.PagedList.Mvc.Core;
@using FwProject.Restaurant.Dto
@model IPagedList<RestaurantOutputDto>
@{
    Layout = null;
}
<div class="modal-dialog" style="width:800px;">
    <div class="modal-content animated fadeIn">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
            <h4 class="modal-title">选择餐厅</h4>
        </div>
        <div class="row m-b-sm m-t-sm">
            <form class="form-horizontal" asp-controller="FinanceReport" asp-action="SelectRestaurantData" data-ajax="true" data-ajax-update="#data_list_2" data-ajax-method="Get" data-ajax-mode="replace" data-ajax-begin="AjaxBegin" data-ajax-success="LoadDataSuccessMessage">
                <div class="col-lg-4 col-md-4">
                    <label class="control-label col-lg-4 col-md-4">餐厅：</label>
                    <div class="input-group">
                        <input type="text" id="keyword" name="keyword" placeholder="请输入餐厅名称" class="input-sm form-control">
                    </div>
                </div>
                <div class="col-md-4 col-lg-4">
                    <label class="control-label col-md-4 col-lg-4">线路：</label>
                    <div class="input-group">
                        @Html.DropDownList("LineId", ViewBag.Line as IEnumerable<SelectListItem>, "全部", new { @class = "form-control" })
                    </div>
                </div>
                <div class="col-lg-1 col-md-1">
                    <span class="input-group-btn">
                        <button type="submit" class="btn btn-sm btn-primary"> 查询</button>
                    </span>
                </div>
            </form>
        </div>
        <div class="modal-body" id="data_list_2">
            @{Html.RenderPartial("SelectRestaurantPartial", Model);}
        </div>
        <div class="modal-footer">
            <button type="reset" class="btn btn-default" data-dismiss="modal">取消</button>
            <button type="button" id="save" class="btn btn-primary" data-loading-text="执行中...">保存</button>
        </div>
    </div>
    <!-- /.modal-content -->
</div>




